package com.chg.mymvc.service;

import com.chg.mymvc.entity.Item;

import java.util.List;

public interface ItemService {
    public void delItem(int id);
    public void updateItem(Item item);
    public List<Item> queryAll(int page, int pagesize);
    public List<Item> getAllItem();
    public int allcount();
    public Item getItemByName(String name);
    public int addItem(Item item);
    public Item selecItemtById(int id);


    //根据名称查id
    public Item getNewsidByItemId(String name);
}
